<?php


namespace app\user\controller;


use app\common\model\User as UserModel;
use think\Controller;

class UserController extends Controller
{
    public function index()
    {
        $user = new UserModel();
        // $users = $user->select();

        // 向V层传递数据
        // $this->assign();

        // 取回打包后的数据
        $html = $this->fetch();

        // 返回数据给用户
        return $html;
    }


    public function create()
    {
        if ($this->request->isGet()) {
            $html = $this->fetch();
            return $html;
        }


    }


    public function delete()
    {
        return "delete";
    }


    public function update()
    {
        return "update";
    }


}